//
//  TestCollectImageCVC1.swift
//  jhf
//
//  Created by 计海峰 on 2021/12/6.
//  Copyright © 2021 CocoaPods. All rights reserved.
//

import UIKit
import CooperSwift

class TestCollectImageCVC1Model: NSObject, CollectionCellConfigProtocol {

    func cellCls() -> UICollectionViewCell.Type {
        return TestCollectImageCVC1.self
    }
    
    var model: Any?
    
    required init(_ model: Any?) {
        super.init()
        self.model = model
        self.cellSize = CGSize(Screen.width/3.0 - 0.01, Screen.width/3.0 - 0.01)
    }
    
}

class TestCollectImageCVC1: UICollectionViewCell {

    
    @IBOutlet weak var lb: UILabel!
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
//        contentView.backgroundColor = .white
//        contentView.backgroundColor = .random()
    }

    override func bindTo(_ info: Any?) {
        super.bindTo(info)
        guard let model = info as? TestCollectImageCVC1Model else { return }
        lb.text = model.model as! String
    }

}
